﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace Tools.Framework
{
    public class JsonContentResult<T>:JsonResult where T:class 
    {
        public override void ExecuteResult(ControllerContext context)
        {
            //Newtonsoft.Json.Converters.IsoDateTimeConverter convert = new Newtonsoft.Json.Converters.IsoDateTimeConverter();
            //convert.DateTimeFormat = "yyyy-MM-dd HH:mm:ss";
            //var str = Newtonsoft.Json.JsonConvert.SerializeObject(obj, convert);
            //return Content(str, "application/json", UTF8Encoding.UTF8);
            base.ExecuteResult(context);
        }
    }
}
